/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function loadXMLDoc(documentName)
{
    var xhttp=new XMLHttpRequest();
    var url = "getXML.action";
    xhttp.open("GET",url + '?documentName=' + documentName,false);
    xhttp.send(null);
    return xhttp.responseXML;
}

function loadXMLText(documentName)
{
    var xhttp=new XMLHttpRequest();
    var url = "getXML.action";
    xhttp.open("GET",url + '?documentName=' + documentName,false);
    xhttp.send(null);
    return xhttp.responseText;
}

//Ham nay them vao active nguoi dung biet minh dang o trang nao
function activeCurrentNav(navClass)
{
    document.getElementsByClassName(navClass)[0].className = 'active';
}